package com.woniuxy.feign;

import com.woniuxy.feign.hystrix.UtilHystrix;
import com.work.framework.pojo.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author fengyao
 * @version 1.0
 * @date 2019/9/28 0028 上午 9:57
 */
@FeignClient(value = "auction-chat-provider-server",fallback = UtilHystrix.class)
public interface AuctionFeign {
    @PutMapping("/balance/freeze/{aid}")
    ResultDTO cashChange(@PathVariable("aid") Integer aid);
}
